Skip to content

Conversation

@nyanko3141592
Copy link
Collaborator

概要

  • いい感じ変換の設定をConfigWindowからMagic Conversionウィンドウに移動
  • Magic Conversionウィンドウのヘッダーに設定ボタン(歯車アイコン)を追加
  • カスタムプロンプトショートカットをピン留めプロンプトに統合(別エディタ不要に)
  • ピン留めプロンプトごとにキーボードショートカット・ダブルタップ(英数/かな)を設定可能に

変更内容

Magic Conversionウィンドウ

  • ヘッダーに設定ボタンを追加 → MagicConversionSettingsSheetを開く
  • 設定シート: メインショートカット、AIバックエンド選択、OpenAI API設定
  • ピン留めプロンプトにショートカットバッジとダブルタップ表示(E/J)を追加
  • ピン留めプロンプトのショートカットボタンをクリックして設定

ConfigWindow

  • 基本タブから「いい感じ変換」セクションを削除
  • カスタマイズタブから「基本ショートカット」セクションを削除

コード整理

  • CustomPromptShortcut構造体とCustomPromptShortcutsEditor.swiftを削除
  • ショートカットはPromptHistoryItemに直接保存するように変更

テスト項目

  • Magic Conversionウィンドウに設定ボタンが表示される
  • AIバックエンドを設定して保存される
  • いい感じ変換のショートカットを変更できる
  • ピン留めプロンプトにショートカットを割り当てられる
  • テキスト選択時にショートカットでプロンプトが発動する
  • ダブルタップ(英数/かな)をピン留めプロンプトに割り当てて動作する
  • ConfigWindowにいい感じ変換の設定が表示されない

🤖 Generated with Claude Code

nyanko3141592 and others added 16 commits January 6, 2026 01:09
…View

Move all いい感じ変換 (Magic Conversion) settings to the prompt input window:
- Add settings button (gear icon) to Magic Conversion window header
- Create MagicConversionSettingsSheet with keyboard shortcut, AI backend, and OpenAI API settings
- Remove いい感じ変換 section from ConfigWindow basic tab
- Remove 基本ショートカット section from ConfigWindow customize tab
- Clean up unused variables and functions from ConfigWindow

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Keep AI backend settings in ConfigWindow for easier access,
while shortcuts remain configurable in PromptInputView.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Remove debug logger and timing measurements from InputController
- Add early return optimization for custom prompt shortcut check
- Remove "Created by Claude Code" file headers

Co-Authored-By: Claude Opus 4.5 <[email protected]>
…ortcuts-in-pin-ui

# Conflicts:
#	azooKeyMac/InputController/azooKeyMacInputController.swift
- Remove debug print statements from KeyboardShortcutConfigItem
- Remove debug messages from custom shortcut handling
- Add custom decoder to PromptHistoryItem for backward compatibility with existing data

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@ensan-hcl ensan-hcl added the enhancement New feature or request label Jan 15, 2026
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このファイルなんだけど、Apple Platform非依存のロジックに関してはCore/側で管理していきたいので、NSEvent部分以外を上手くCore/の方に書いてほしい。

@@ -0,0 +1,74 @@
@_spi(Core) import Core
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@_spi(Core)って何……?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このファイルも同じ理由で、実装可能な部分はなるべくCore/側に置いてほしい。今はほとんどのConfigはCore/側に移動してる。

import Cocoa

/// キーボードショートカットを表す構造体
public struct KeyboardShortcut: Codable, Equatable, Hashable, Sendable {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KeyboardShotrcut側にeisuDoubleTapkanaDoubleTapを入れる案はない?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

入れてもいいんだけど将来的になんか困りそうじゃない?そうでもないか?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

うーん?具体的なシナリオってある?

return
}

if event.keyCode == 53 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この辺のキーコード、キーコードで書いてあってもパッと分からないのでコメントを書いて欲しい

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants